<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../lib/css/animate.min.css">
    <title>Document</title>
    <style>
        h1 {
            
            font:100%/1.5 -apple-system, BlinkMacSystemFont,
            "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
            "Fira Sans", "Droid Sans", "Helvetica Neue",
            sans-serif;
            -webkit-font-smoothing: antialiased;
            font-size: 96px;
            font-weight: 100;
            color: #f35626;
            background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    </style>
</head>

<body>
    <div id="test" class="flipInX animated">
        <h1>Animate.css</h1>
    </div>

    <button id="btn">切换动画</button>
    <script>
        var test = document.getElementById('test')
        var btn = document.getElementById('btn')
        btn.onclick = function () {
            console.log(111)
            test.classList.toggle('flipInX')
            test.classList.toggle('animated')
        }
    </script>
</body>

</html>